﻿package app.demo.scrollPanel {
	
	import app.core.action.Scrollable;
	import app.core.canvas.*;
	import flash.display.Sprite;
	import flash.events.TUIO;
	
	public class ScrollPanel extends Scrollable {
		
		public function ScrollPanel():void {
			
			horizontalScroll = true;
			verticalScroll = false;
			TUIO.init(this,'localhost',3000,'',true);
			
			var vierkant:Sprite = new Sprite();
			var xPos:int = 0;
			for(var i:int=0;i<20;i++) {
				vierkant.graphics.lineStyle(5, 0x000000,1);
				vierkant.graphics.beginFill(0x000000);
				vierkant.graphics.drawRect(xPos+(i*110),100,100,100);
				vierkant.graphics.endFill();
				addChild(vierkant);
			}
		}
	}
}
